Bottom-Up Approach to Innovative Memory Devices: I. Intrinsic and Environmental Effects on the Molecular Component