Surface imprinting of microorganisms