Levels of p-adic automorphic forms and a p-adic Jacquet-Langlands correspondence