Doctor charged in Matthew Perry case accepts plea deal