Special aspects of validation of software in legal metrology : doctor's degree thesis