Standard bases for coordinate rings of cotangent varieties