Forces in nematic liquid crystals constrained to the nanometer scale under hybrid anchoring conditions