Former Aston Villa manager Paul Lambert has been appointed Blackburn Rovers boss, replacing the sacked Gary Bowyer.