Structural and electronic properties of spinel type Mg1+yCo2-x-yMnxO4 for cathode applications in magnesium rechargeable batteries