Measurements of bubble size distributions with an optical technique based on depth from focus