Curved BPS domain walls and RG flow in five dimensions