“The extent of the court’s inquiry into the child’s welfare will depend on the circumstances of the case; in some cases the child’s welfare will be best served by a summary hearing and, if necessary, a prompt return to the State from which the child has been removed or retained. In other cases a more detailed enquiry may be necessary”