Eigenvalues of magnetic Laplacians on graphs and manifolds: Cheeger inequalities and Ramanujan property