Polarization gradient cooling in a one-dimensional sigma +- sigma - configuration for any atomic transition