Finite element modeling of spur gears for contact and bending stresses