Analysis and design of photonic crystal fibers: Solid and hollow core fibers through the finite element method