What are the Shari‘ah-compliant procedures for artificial insemination or in vitro fertilisation?

Artificial insemination is permissible if the wife’s egg is fertilized by the husband’s sperm.