In quadrilateral $PQRS$, $PQ = QR = RS = SP$, $PR = \sqrt{2}$, and $QS = \sqrt{2}$. Find the perimeter of $PQRS$.