Chemically-engineered multipurpose spin selection in a double-level molecular device with spinterface