Reverse ostrowskis type weighted inequalities for convex functions on linear spaces with applications