Non-vanishing Gram determinants for cyclotomic Nazarov–Wenzl and Birman–Murakami–Wenzl algebras☆