On Attractor Mechanism and Entropy Function for Non-Extremal Black Holes/Branes