Method of calculating resonances in cells with a high-quality antirelaxation coating