An Introduction to the Finite Element Method