Crystal Structures of Ni$_2$MnGa from Density Functional Calculations