Temperature effects in metalclad semiconductor nanolasers