Low-frequency noise of quantum point contacts in the ballistic and quantum Hall regime