Basic relationships for Hall half-plane structures with multiple extended contacts on the boundary: Applications to the extraction of physical parameters and optimization of graphene and vertical Hall devices