Search for neutron–mirror neutron oscillations in a laboratory experiment with ultracold neutrons