Three-dimensional free boundary calculations using a spectral Green's function method