Lateral and normal forces between patterned substrates induced by nematic fluctuations