Magnetic anisotropies of (Ga,Mn)As films and nanostructures