Proton transfer in surface-stabilized chiral motifs of croconic acid