Scanning tunneling microscopy study of the hydrogen-terminated n- and p-type Si(001) surfaces