Composite Majorana fermion wave functions in nanowires