Performance optimization of single and two-stage micro/nano-scaled heat pumps with internal and external irreversibilities