Exact diffraction calculation from fields specified over arbitrary curved surfaces