Smoothed Profile Method: Error Analysis, Verification and Application in Dielectric Problems