A lattice Boltzmann approach to fluid-structure interaction problems