Polycrystalline, glassy and thin films of LiMn2O4