Critical random graphs: Diameter and mixing time