Gravitational collapse and spacetime singularities