A solenoid of inductance 2H carries a current of 1A. What is the magnetic energy stored in a solenoid?