Haloperoxidases as catalysts in organic synthesis