Experimental creation and analysis of displaced number states