Calculation of laser resonator characteristics