Accurate quantum Monte Carlo calculations for hydrogen fluoride and the fluorine atom