A linear-optical proof that the permanent is #P-hard