Thin-film electronics based on all-2D van der Waals heterostructures