Theoretical and actual energy behavior of a cost-optimal based Nearly-Zero Energy Building