Electronic properties and elastic constants of wurtzite, zinc-blende and rocksalt AlN