Energy Harvesting using Two-dimensional Magnesiochromite (MgCr2O4)