An introduction to finite element analysis