Synthesis of novel heterocycles with antimicrobial and surface activity