Superspecial abelian varieties, theta series and the Jacquet-Langlands correspondence