Habitability in the Trappist-1 and other exoplanetary systems around red dwarfs