Magnetic-field-induced charge current in quantum wells with spin–orbit coupling