Time Synchronization Based on Linear Regression in Low Cost WSNs: a Performance Analysis