Polyanhydrides for controlled release of bioactive agents