Influence of a constant electric field in cavities of nanotubes. Bloch oscillations and electron confinement