Effect of hydrocarbon chain length on arrangement of chemically adsorbed monolayers