Investment under uncertainty with variable costly reversibility