Facile synthesis of novel 3,4,5-trisubstituted-1,2,4-triazin-6(1H)-ones via a sequential Ugi–Smiles type/nucleophilic substitution/cyclization reaction