Amaranthus caudatus lectin with polyproline II fold: conformational and functional transitions and molecular dynamics