Photoluminescence and Zeeman effect in chromium-doped 4H and 6H SiC