Finite Element Method (Chapter from "Gratings: Theory and Numeric Applications")