Comparative studies of the electronic structure of LiFePO4, FePO4, Li3PO4, LiMnPO4, LiCoPO4, and LiNiPO4