How do you create a homunculus?

In Fullmetal Alchemist,

A homunculus is the end result of a failed human transmutation attempt.