Solving engineering eigenvalue problems with neural networks using the Rayleigh quotient