Orbital resonances in the inner neptunian system. II. Resonant history of Proteus, Larissa, Galatea, and Despina