Second-harmonic generation in birefringent crystals by a Gaussian beam with an elliptical cross section