Complexity of formation in holography