B-doped SnO2 nanoparticles: a new insight into the photocatalytic hydrogen generation by water splitting and degradation of dyes