LASSI: An LLM-based Automated Self-Correcting Pipeline for Translating Parallel Scientific Codes