Kinetics of phase transformations in a binary alloy surface layer at the selective dissolution. I. Theoretical analysis