Double Penning trap technique for precise g factor determinations in highly charged ions