Discrete differential forms, approximation of eigenvalue problems, and application to the p version of edge finite elements