Coherent population trapping as a magnetic-field diagnostic for hydrogen plasmas