Reverses of Schwarz inequality in inner product spaces with applications