Investigating gas-phase molecular structures and structural dynamics with Coulomb explosion imaging