Legislation doubles prison terms, fines for same-sex acts and criminalizes promotion amid rising arrests in West Africa