Retail drugstore chain operator Rite Aid Corp. reported Thursday a profit for the second quarter that plunged from last year, despite revenue growth, reflecting lower gross margins, costs related to the EnvisionRx acquisition and loss on debt retirements.Earnings per share missed analysts’ expectations, while quarterly revenues topped their estimates.