Nonspherical Perturbations of Relativistic Gravitational Collapse. I. Scalar and Gravitational Perturbations