Top Nepal judge becomes head of interim government