A single-crystal diamond-based thermal neutron beam monitor for instruments at pulsed neutron sources