A mechanical model of posterior vitreous detachment and generation of vitreoretinal tractions