Sustained release ophthalmic formulations of pilocarpine