Introduction to Finite and Spectral Element Methods using MATLAB