Black phosphorus-based one-dimensional photonic crystals and microcavities