MEMS with fringing field: curvature-dependent electrostatic field and numerical techniques for recovering the membrane profile