Structure-function relationships in the evolutionary framework of spermine oxidase