Transform2Act: Learning a Transform-and-Control Policy for Efficient Agent Design