Defect-related photoluminescence of hexagonal boron nitride