AdS4 compactifications of AdS7 solutions in type II supergravity