Modal wavefront reconstruction in radial shearing interferometry with general aperture shapes