Two Bradford hospital trusts made more than £2m in parking charges in 2023-24, new figures have revealed.