Bubble cavitation in a microchannel