Modification of soybean oil for intermediates by epoxidation, alcoholysis and amidation