The 16O(γ, n)15O∗ and 16O(γ, p)15N∗ reactions at intermediate energies