Self-assembly of patterned monolayers with nanometer features: molecular selection based on dipole interactions and chain length.