Box representations of embedded graphs