An introduction to von Neumann algebras