Nebuliser with vibrating membrane and intelligent aerosol technology