Basic principles of the finite element method