Can I seek compensation for illegal arrest or unlawful detention through a writ petition?