Visible, invisible and trapped ghosts as sources of wormholes and black universes