Gravitational perturbations of spherically symmetric systems. II. Perfect fluid interiors