App may help people have lucid dreams, research suggests