Phase equilibria and glass transition in colloidal systems with short-ranged attractive interactions : application to protein crystallization