Single step process for particles surface modification or thin film composite production