A local moment approach to magnetic impurities in gapless Fermi systems