Distributed Bragg reflector and cavity