A pair of young hackers who conducted an “extremely serious hack” on Transport for London (TfL) over a livestream have been jailed.