Partially bent functions and their properties