Three-dimensional magnetotail equilibria with prescribed boundary shapes