Endo to acquire American Medical Systems