Preparation of 1,3,4-oxadiazoles and 1,3,4-thiadiazoles via chemoselective сyclocondensation of electrophilically activated nitroalkanes to (thio)semicarbazides or thiohydrazides