Loop quantum cosmology of Bianchi I models