The magnetic field strength in the H II region S232