Collapse of spherical charged anisotropic fluid spacetimes